﻿package  {
	import airdnd.world.*;
	import airdnd.controls.*
	import flash.display.MovieClip;
	import flash.events.*;
	
	import com.inruntime.utils.*;
	
	public class DNDprototype extends MovieClip {
		private var global:Global = Global.getInstance();
		// global.stage accesses
		
		public static var tileDim:int=30;
		public static var tileColour:String;
		public static var moveButton:moveTool = new moveTool();
		public static var paintButton:paintTool = new paintTool();
		public static var saveButton:saveTool = new saveTool();

		public function DNDprototype() {			
			addChild(moveButton);
			moveButton.x = 784.55;
			moveButton.y = 28.4;
			
			addChild(paintButton);
			paintButton.x = 862.55;
			paintButton.y = 28.4;
			
			addChild(saveButton);
			saveButton.x = 784.55;
			saveButton.y = 120;
			
			var world:WorldHandler = new WorldHandler(40,30); //draws a grid (x,y)
			global.world = world;
			global.tileCol = 0xFFFFFF; //default tile color
			addChild(global.world);
			world.mask = MapArea;
		}	
		
	}//end class
	
}//end package
